set -eux

release="bookworm"

# Add Docker's official GPG key:
mv /etc/apt/sources.list.d/yarn.list  /etc/apt/sources.list.d/yarn.list.bak

sed -i 's/deb.debian.org/mirrors.huaweicloud.com/g' /etc/apt/sources.list.d/debian.sources
apt-get update
apt-get install -y \
 ca-certificates curl gnupg  software-properties-common 

# Add the repository to Apt sources:
curl -fsSL https://mirrors.huaweicloud.com/docker-ce/linux/debian/gpg | apt-key add -

cat > /etc/apt/sources.list.d/docker.list <<"EOF"
deb [arch=amd64] https://mirrors.huaweicloud.com/docker-ce/linux/debian bookworm stable
EOF

apt-get update

apt-get install -y docker-ce-cli docker-compose-plugin  \
    gettext \
    iputils-ping \
    vim \
    sqlite3 \
    dnsutils
